package edu.sctu.practice.class02.qiuyangyang.text10;

/**
 * Created by Administrator on 2015/10/12 0012.
 */
public class Addition {
    public int add(int a, int b) {

        System.out.println(a + b);
        return a + b;
    }

    public String add(String a, String b) {
        System.out.println(a + b);
        return a + b;
    }

    public long add(long a, long b) {
        System.out.println(a + b);
        return a + b;
    }

    public float add(float a, float b) {
        System.out.println(a + b);
        return a + b;
    }

    public double add(double a, double b) {
        System.out.println(a + b);
        return a + b;
    }

    public static void main(String[] args) {
        Addition t = new Addition();
       t.add(2l,44l);
        t.add(5.2f, 6.4f);
        t.add(2.0, 3.0);
       t.add(2,5);
        t.add("a", "b");
    }
}
